<?php


namespace App\Service\Pay;


class PayFactory
{
    public static function service($provider,$order)
    {
        $class = 'App\\Service\\Pay\\' . sprintf('%sPayService', $provider);
        if (class_exists($class)) {
            return new $class($order);
        }
    }
}
